package com.chenyaowei.marketing.service;

import com.chenyaowei.marketing.domain.CywSpuFullReduction;

import java.util.List;

/**
 * 商品满减Service接口
 *
 * @author chenyaowei
 * @date 2023-11-28
 */
public interface ICywSpuFullReductionService
{
    /**
     * 查询商品满减
     *
     * @param id 商品满减主键
     * @return 商品满减
     */
    public CywSpuFullReduction selectCywSpuFullReductionById(Long id);

    /**
     * 查询商品满减列表
     *
     * @param cywSpuFullReduction 商品满减
     * @return 商品满减集合
     */
    public List<CywSpuFullReduction> selectCywSpuFullReductionList(CywSpuFullReduction cywSpuFullReduction);

    /**
     * 新增商品满减
     *
     * @param cywSpuFullReduction 商品满减
     * @return 结果
     */
    public int insertCywSpuFullReduction(CywSpuFullReduction cywSpuFullReduction);

    /**
     * 修改商品满减
     *
     * @param cywSpuFullReduction 商品满减
     * @return 结果
     */
    public int updateCywSpuFullReduction(CywSpuFullReduction cywSpuFullReduction);

    /**
     * 批量删除商品满减
     *
     * @param ids 需要删除的商品满减主键集合
     * @return 结果
     */
    public int deleteCywSpuFullReductionByIds(Long[] ids);

    /**
     * 删除商品满减信息
     *
     * @param id 商品满减主键
     * @return 结果
     */
    public int deleteCywSpuFullReductionById(Long id);

    List<CywSpuFullReduction> selectListBySpuIds(List<Long> spuIds);
}
